﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace IntelligentEscalator.Models
{
    public class AuthInfo
    {
        public string type { get; set; }
    }

    public class TokenInfo
    {
        public string access_token { get; set; }
        public string refresh_token { get; set; }
        public string uid { get; set; }
        public string expires_in { get; set; }
    }

    public class TokenError
    {
        public string errcode { get; set; }
        public string msg { get; set; }
    }

    public class AuthUserInfo
    {
        public List<string> spRoleList { get; set; }
        public string uid { get; set; }
        public string mail { get; set; }
        public string displayName { get; set; }
        public string loginName { get; set; }
        public string mobile { get; set; }
        public string employeeNumber { get; set; }
    }

    public class AuthAccountInfo
    {
        public string id { get; set; }
        public string type { get; set; }
        public string operateType { get; set; }
        public string fullname { get; set; }
        public string username { get; set; }
        public string organizationId { get; set; }
        public string organizationCode { get; set; }
        public string password { get; set; }
        public string disabled { get; set; }
        public string employeeNo { get; set; }
        public string mobile { get; set; }
        public string email { get; set; }
        public string dingUserId { get; set; }
        public string dingUnionId { get; set; }
    }
    public class AuthOrganizationInfo
    {
        public string id { get; set; }
        public string type { get; set; }
        public string operateType { get; set; }
        public string parentId { get; set; }//上级机构的ID，注意：顶层机构返回null，非空字符串
        public string parentCode { get; set; }//上级机构的代码，注意：顶层机构返回null，非空字符串
        public string code { get; set; }//集团HR系统组织机构编码
        public string name { get; set; }//行政组织机构名称
        public string disabled { get; set; }//禁用true，启用false

    }

}
